package com.qk.management.anno;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Cacheable {
    String redisKey() default "";

    @AliasFor("redisKey")
    String Value() default  "";

    String redisKeyPrefix() default "";

    long redisKeyExpireTime() default 0;

    TimeUnit redisKeyExpireTimeUnit() default TimeUnit.SECONDS;
}
